package com.hoshiicloud.rbac.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 角色
 * </p>
 *
 * @author Mr.Wu
 * @since 2019-04-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SysRoles对象", description = "角色")
public class SysRoles extends Model<SysRoles> {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "id")
	private Long id;

	@ApiModelProperty(value = "角色分类(1-saas角色 2-租合角色 3-平台角色 4-其他")
	private Integer type;

	@ApiModelProperty(value = "关联id  按角色分类")
	private Long relateId;

	@ApiModelProperty(value = "角色名称")
	private String name;

	@ApiModelProperty(value = "角色标题")
	private String title;

	@ApiModelProperty(value = "角色描述")
	private String description;

	@ApiModelProperty(value = "排序")
	private Long orders;

	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createdTime;

	@ApiModelProperty(value = "更新时间")
	private LocalDateTime updatedTime;

	@ApiModelProperty(value = "版本号")
	private Integer version;

	/*@TableField(exist = false)
	@ApiModelProperty(value = "权限id数组")
	private List<String> permissionIdList;
*/
	@Override
	protected Serializable pkVal() {
		return this.id;
	}


}
